<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="/js/chosen/chosen.css" />
</head>

<body style="font-family:Arial, Helvetica, sans-serif;">
<h1>Rearrange Staff To Manager
</h1>
<form id="form1" name="form1" method="post" action="">
<select name="check_manager" id="check_manager">
      	<option selected disabled>Please Select</option>
       	<?php foreach($this->arrMgrList as $km => $vm) {?> 
        <option value="<?php echo $km?>"><?php echo $vm;?></option>
      	<?php }?>
      	<option value="all">All</option>
      </select>
<input type = "submit" name = "checkManager" value = "Check List"></input><br/><br/>
<table width="600" border="1" cellspacing="0" cellpadding="5">
  <tr>
    <td>Staff</td>
    <td>Set To Manager</td>
  </tr>
  
      <?php foreach($this->stList as $k => $v) {?>
      <tr>
		<td><?php echo $v['first_name']." ".$v['last_name']." (".$v['ni'].")"?></td>
		<td><label for="id_manager"></label>
      	<select name="id_manager[<?php echo $v['id_staff']?>]" id="id_manager_<?php echo $v['id_staff']?>">
      	<option selected disabled>Please Select</option>
       	<?php foreach($this->arrMgrList as $km => $vm) {?> 
        <option value="<?php echo $km?>"><?php echo $vm;?></option>
      	<?php }?>
      </select></td>
      </tr>
      <?php } ?>
	
  
  <tr>
    <td colspan="2">
      <input type="submit" name="button" id="button" value="Submit" />
    </td>
  </tr>
</table>
</form>
<p>&nbsp;</p>
</body>
</html>
